-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[ADD] estate: Bootstrap new 'estate' module #1020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 19.0
Are you sure you want to change the base?
Conversation
Initializes the basic structure for the real estate module. - Creates the module scaffolding (manifest, init, and base directories). - Defines the initial 'estate.property' model. - Adds base fields (columns) to the new model.
Initializes the basic structure for the real estate module. - Creates the module scaffolding (manifest, init, and base directories). - Defines the initial 'estate.property' model. - Adds base fields (columns) to the new model.
- Set default values for estate.property model fields. - Apply additional field attributes (e.g., readonly, required). - Register menu items to access the tree and form views.
- added basic, list and form view - also added filter for new or offer received stage
- pincode feild name had spelling mistake in views/estate_property_views.xml
…nctionality -Developed and integrated list, form, and search views for the Real Estate module -Including support for group-by operations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
Good Job!
I have left some remarks.
please update your commit message and title. you can refer this documentation :- https://www.odoo.com/documentation/19.0/contributing/development/git_guidelines.html#commit-message-full-description
| 'application': True, | ||
| 'installable': True, | ||
| 'author': 'Odoo S.A.', | ||
| 'category':'Tutorials', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 'category':'Tutorials', | |
| 'category': 'Tutorials', |
estate/__manifest__.py
Outdated
| 'views/estate_menus.xml', | ||
| ], | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An empty line should be without whitespace.
estate/models/estate_property.py
Outdated
| copy=False, | ||
| default='new' | ||
| ) | ||
|
No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An empty line should be without whitespace.
estate/models/estate_property.py
Outdated
| description = fields.Text("Description") | ||
| postcode = fields.Char("Postcode", required=True) | ||
| date_availability = fields.Date("Availability Date", default=fields.Date.today()+relativedelta(months=3)) | ||
| expected_price = fields.Float(required=True) | ||
| selling_price = fields.Float("Selling Price", readonly=True) | ||
| bedrooms = fields.Integer("Bedrooms", default=2) | ||
| living_area = fields.Integer("living_area(sqm)") | ||
| facades = fields.Integer("Facades") | ||
| garage = fields.Boolean("Garage") | ||
| garden = fields.Boolean("Garden") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, Odoo generates a string. If your string is the same as the technical name, then no need to add.
estate/views/estate_menus.xml
Outdated
| <menuitem id="estate_advertisement_menu" | ||
| name="Advertisements" | ||
| parent="estate_root_menu"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <menuitem id="estate_advertisement_menu" | |
| name="Advertisements" | |
| parent="estate_root_menu"/> | |
| <menuitem id="estate_advertisement_menu" | |
| name="Advertisements" | |
| parent="estate_root_menu"/> |
| @@ -0,0 +1,90 @@ | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary diff.
| <filter name="group_by_postcode" | ||
| string="Group by Postcode" | ||
| context="{'group_by': 'postcode'}"/> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary diff.
| <search string="Search Properties"> | ||
| <field name="name"/> | ||
| <field name="postcode"/> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary diff.
| <filter name="group_by_postcode" | ||
| string="Group by Postcode" | ||
| context="{'group_by': 'postcode'}"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
proper indentation needed.
| </record> | ||
|
|
||
|
|
||
| </odoo> No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be one empty line at the end of the file.
-Introduced Property Type and Property Tag models. -Added Buyer and Salesperson fields. -Implemented the Property Offer model.

Initializes the basic structure for the real estate module.